//
//  QAIMHttpRequest.h
//
//用法
/*
 NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:<#(nonnull id), ...#>, nil nil];
 HttpRequest *httpRequest = [HttpRequest sharedInstance];
 [httpRequest GET:<#(NSString *)#> dict:dict succeed:^(id data) {
 NSLog(@"%@", data);
 
 } failure:^(NSError *error) {
 NSLog(@"%@", error);
 }];
 
 */


#import <Foundation/Foundation.h>

@class AFNetworking;

@interface QAIMHttpRequest : NSObject
    
+ (QAIMHttpRequest *)sharedInstance;
    
- (void)GET:(NSString *)URLString dict:(id)dict succeed:(void (^)(id data))succeed failure:(void (^)(NSError *error))failure;
    
- (void)POST:(NSString *)URLString dict:(id)dict succeed:(void (^)(id data))succeed failure:(void (^)(NSError *error))failure;
    
    
@end
